Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(flutter): Add Flutter support #735

Open
wants to merge 49 commits into
base: master
Choose a base branch
from

Conversation

denrase
Copy link

@denrase denrase commented Dec 3, 2024

  • Add flutter as a platform
  • Patch main.dart with import, sentry setup and sample snippet
  • Patch pubspec.yaml with sentry_flutter dependency and plugin to upload debug symbols and source maps

Closes getsentry/sentry-dart#2424
Relates to #558

We need to read both pubspec.yaml and sentry.properties. The current plugin treats them as mutually exclusive. Fixed here:

Blocked by getsentry/sentry-dart-plugin#295

@denrase denrase changed the title WIP: Flutter Support Add Flutter support Dec 9, 2024
@denrase denrase changed the title Add Flutter support feat(flutter): Add Flutter support Dec 9, 2024
@denrase denrase marked this pull request as ready for review December 9, 2024 13:57
@denrase
Copy link
Author

denrase commented Dec 9, 2024

@buenaflor Ready for the first review/feedback round :)

Copy link

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have another look later

src/flutter/flutter-wizzard.ts Outdated Show resolved Hide resolved
src/flutter/flutter-wizzard.ts Outdated Show resolved Hide resolved
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, leaving a first pass review for general wizard recommendations. This is not technical as I have very little to no context around Flutter.

  • Ideally, we can make the SDK features selectable from the start as we've done recently with the JS-SDK wizards. See Make Sentry features selectable in wizard #558
  • Great to see some tests for this flow! :) I recommend adding an e2e test app as well as this proved quite useful for our other wizards.

Feel free to disregard my advice as I'll happily leave the final call to the mobile team. Don't want to block you, just share some recommendations :)

@denrase denrase requested a review from smeubank December 19, 2024 10:20
@buenaflor
Copy link

@krystofwoldrich could you take another looks pls 🙏

src/flutter/code-tools.ts Show resolved Hide resolved
src/flutter/templates.ts Outdated Show resolved Hide resolved
@denrase denrase requested a review from buenaflor January 21, 2025 15:54
@denrase
Copy link
Author

denrase commented Jan 22, 2025

@buenaflor Updated the description with the plugin PR, by which this PR is blocked.

@buenaflor
Copy link

@denrase dart plugin 2.4.0 is out so this is unblocked

@denrase
Copy link
Author

denrase commented Jan 27, 2025

We fetch the most recent version, so apart form another review round we should be god to go.

const pluginVersion = await fetchSdkVersion('sentry.dart.plugin');

@buenaflor
Copy link

buenaflor commented Jan 28, 2025

@denrase imo it looks good, there's some test failing though, dunno if it's flaky

Seems like the tests are failing, I already re-ran them

@Lms24
Copy link
Member

Lms24 commented Jan 28, 2025

there's some test failing though, dunno if it's flaky

Just passing by since I saw this comment: If you rebase the PR to latest master the tests should pass. This was fixed in #766

@denrase
Copy link
Author

denrase commented Jan 28, 2025

@Lms24 PR #766 is already merged in here. The nuxt tests are failing with a timeout.

Bildschirmfoto 2025-01-28 um 14 37 11 Bildschirmfoto 2025-01-28 um 14 37 19

@Lms24
Copy link
Member

Lms24 commented Jan 28, 2025

Hmm so @andreiborza and I looked into this and we have a slight suspicion what could cause it but honestly, nothing concrete. Given it worked in the latest run, let's ignore it for now 😅

Out of scope for this PR but leaving it here: If this comes up again or in other PRs, we should make our method of checking for a successful app start more robust. Either we make a request against the started endpoint or we use something like Playwright to check for a successful pageload/whatever.

@buenaflor
Copy link

seems like tests run now, guess it was flaky?

Copy link

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@krystofwoldrich
Copy link
Member

@denrase Thank you for adding the Flutter wizard, I've checked the latest changes and it looks good.

I noticed one small typo #735 (comment)

@denrase
Copy link
Author

denrase commented Jan 29, 2025

@krystofwoldrich done, thank you! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sentry wizard support
5 participants